package com.iot08.common.utils.response;

/**
 * @version 1.0
 * @Description: 请求响应码
 * @author: Rock
 * @time: 2020/9/21 9:18
 */
public enum ResponseEnum {

    STATUS0(0, "API.request.success"),
    STATUS400(400, "API.request.parameterError"),
    STATUS401(401, "API.request.invalidToken"), //accesstoken参数无效
    STATUS402(402, "API.request.invalidToken"),
    STATUS403(403, "API.request.login.accountLoginFail"),
    STATUS405(405, ""),
    STATUS410(410,""),
    STATUS500(500, ""),
    STATUS600(600, "API.request.deviceInactive"),
    STATUS2000(2000, "API.request.deviceUnbindNotFindAccount"),
    STATUS2001(2001, "API.request.deviceNotFind"),
    STATUS2002(2002, ""),
    STATUS2003(2003, "API.request.deviceUnbindNotFindGroup"),
//    STATUS2010(2010, "设备IMEI账号登录，如需注销账号，请将该设备恢复出厂设置即可"),
    STATUS2011(2011, "API.request.register.notAccount"),
    STATUS4000(4000, ""),
    STATUS4001(4001, ""),
    STATUS4002(4002, ""),
//    STATUS4003(4003, "%s 不在该群组中"),
    STATUS4004(4004, ""),
    STATUS4005(4005, ""),
    STATUS4006(4006, ""),
    STATUS4007(4007, ""),
    STATUS4008(4008, ""),
    STATUS4009(4009, ""),
    STATUS4010(4010, ""),
    STATUS5001(5001, "API.request.deviceNotOnline"),
    STATUS5002(5002, ""),
    STATUS5003(5003, "API.request.deviceReservedPowerMode"),
//    STATUS5004(5004, "API.request.disturbMode"),
    STATUS5005(5005, "API.request.deviceDataFlowLimiting"),
    STATUS5006(5006, "API.request.operatingFrequency"),
    STATUS5007(5007, "API.request.vCodeError"),
    STATUS5008(5008, "API.request.oldPWDError"),
    STATUS5009(5009, "API.request.PWDError"),
    STATUS5010(5010, "API.request.register.phoneDuplicate"),
    STATUS5011(5011, "API.request.register.phoneUnregistered"),
    STATUS5012(5012, "API.request.register.mailDuplicate"),
    STATUS5013(5013, "API.request.register.mailUnregistered"),
    STATUS5014(5014, "API.request.certification.invalidCertification"),
    STATUS6000(6000, "API.request.disturbMode"),
    STATUS6001(6001, "API.request.deviceLossing"),
    STATUS7000(7000, "API.request.httpParameterDecryptionFailure"),

    ;

    private int code;
    private String msg;

    private ResponseEnum() {
    }

    private ResponseEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
